﻿@model SportsStore.Domain.Enities.Cart
<ul class="nav navbar-nav navbar-right">
    <li class="text-center">
        <b>我的购物车</b>
        <span class="badge">@Model.Lines.Sum(l => l.Quantity * l.Product.Price)</span>,@Model.ComputeTotalValue().ToString("C")
    </li>
    <li>
        @Html.ActionLink("结账", "Index", "Cart",
            new { returnUrl = Request.Url.PathAndQuery },
            new { @class = "btn btn-default navbar-btn" })
    </li>
</ul>

